<!DOCTYPE html>
<html lang="en">
<head>
	<meta http-equiv="Content-Type">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>自助式分析系统-登录</title>
	<link rel="stylesheet" href="/login_files/normalize.css">
	<link rel="stylesheet" href="/login_files/demo.css">
	<!--必要样式-->
	<link rel="stylesheet" href="/login_files/component.css">
	<!--[if IE]>
	<script src="js/html5.js"></script>
	<![endif]-->
</head>
<style>
	*{
		font-family:"Times New Roman",Georgia,Serif;
 	}
</style>
<body>
		<div class="container demo-1">
			<div class="content">
				<div id="large-header" class="large-header" style="height: 750px;">
					<canvas id="demo-canvas" width="1536" height="750"></canvas>
					<div class="logo_box">
						<h1 style="text-align:center;">登录</h1>
						<form action="/check" id="login_form" method="post">
							<div class="input_outer">
								<span class="u_user"></span>
								<input name="username" id="username" value="admin" class="text" style="color: #FFFFFF !important" type="text" placeholder="请输入账户">
							</div>
							<div class="input_outer">
								<span class="us_uer"></span>
								<input name="password" id="password" value="admin" class="text" style="color: #FFFFFF !important; position:absolute; z-index:100;" value="" type="password" placeholder="请输入密码">
							</div>
							<div class="mb2"><a class="act-but submit" id="login" href="javascript:;" style="color: #FFFFFF">登录</a></div>
						<span style="position:absolute;left:115px;cursor:pointer;" id="get_register">还没有账号，点击注册</span>
						</form>

					</div>
				</div>
			</div>
		</div><!-- /container -->
</body>
</html>
<script src="/login_files/TweenLite.min.js"></script>
<script src="/login_files/EasePack.min.js"></script>
<script src="/login_files/rAF.js"></script>
<script src="/login_files/demo-1.js"></script>
<script src="/js/jquery.min.js"></script>
<script>
	// 根据状态码提示信息
	if({{status}}){
		alert("账号或密码错误~~~");
	}
	// 等待加载
	$(function(){

		// 登录提交表单
		$('#login').click(function(){
			// 判断账号密码不为空
			if($('#username').val().length > 0 && $('#password').val().length > 0){
				// 提交表单
				$('#login_form').submit();
			}else{
				alert("账号或密码不能为空~~~");
			}
		});

		$("#get_register").click(function(){
			window.location.href = "/register";
		});
	});
</script>